package com.ruoyi.project.system.record.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.beans.Transient;
import java.util.Date;

/**
 * 工作日志对象 work_record
 * 
 * @author ruoyi
 * @date 2019-11-15
 */
public class WorkRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long workId;

    /** 所属需求 */
    @Excel(name = "所属需求")
    private Long reqId;

    /** 工作内容 */
    @Excel(name = "工作内容")
    private String workContent;

    /** 使用工作量 */
    @Excel(name = "使用工作量")
    private Float workDays;

    /** 开发人 */
    @Excel(name = "开发人")
    private Long userId;

    /** 记录日期 */
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date markDate;

    public void setWorkId(Long workId)
    {
        this.workId = workId;
    }

    public Long getWorkId() 
    {
        return workId;
    }
    public void setReqId(Long reqId) 
    {
        this.reqId = reqId;
    }

    public Long getReqId() 
    {
        return reqId;
    }
    public void setWorkContent(String workContent) 
    {
        this.workContent = workContent;
    }

    public String getWorkContent() 
    {
        return workContent;
    }

    public Float getWorkDays() {
        return workDays;
    }

    public void setWorkDays(Float workDays) {
        this.workDays = workDays;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setMarkDate(Date markDate) 
    {
        this.markDate = markDate;
    }

    public Date getMarkDate() 
    {
        return markDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("workId", getWorkId())
            .append("reqId", getReqId())
            .append("workContent", getWorkContent())
            .append("workDays", getWorkDays())
            .append("userId", getUserId())
            .append("markDate", getMarkDate())
            .toString();
    }
}
